<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title></title>
<#include "../../head.html"/>
</head>
<body>
<div class="box-positon">
	<div class="rpos">当前位置:  管理员(本站) - 修改</div>
	<form class="ropt">
		<input type="button" value="返回列表" onclick="history.back();" class="return-button"/>
	</form>
	<div class="clear"></div>
</div>
<div class="body-box">
<form method="post" action="o_update.do" id="jvForm">
<table width="100%" class="pn-ftable" cellpadding="2" cellspacing="1" border="0">
<tr>
<td width="12%" class="pn-flabel pn-flabel-h">用户名:</td>
<td colspan="1" width="38%" class="pn-fcontent">${cmsAdmin.username}</td>
<td width="12%" class="pn-flabel pn-flabel-h">电子邮箱:</td>
<td colspan="1" width="38%" class="pn-fcontent"><input type="text" maxlength="100" value="${cmsAdmin.email!}" name="email" class="email" size="30" maxlength="100"/></td></tr>
<tr><td width="12%" class="pn-flabel pn-flabel-h">密码:</td><td colspan="1" width="38%" class="pn-fcontent"><input type="password" autocomplete="off" id="password" maxlength="100" name="password" maxlength="100"/>
 <span class="pn-fhelp">不修改请留空</span></td><td width="12%" class="pn-flabel pn-flabel-h">确认密码:</td><td colspan="1" width="38%" class="pn-fcontent"><input type="password" autocomplete="off" equalTo="#password"/>
 <span class="pn-fhelp">不修改请留空</span></td></tr>
<tr><td width="12%" class="pn-flabel pn-flabel-h"><span class="pn-frequired">*</span>会员组:</td>
<td colspan="1" width="38%" class="pn-fcontent">
<select name="groupId">
<#list groupList as group>
<option <#if cmsAdmin.group.id==group.id>selected="selected"</#if>value="${group.id}">${group.name}</option>
</#list>
</select>
</td><td width="12%" class="pn-flabel pn-flabel-h"><span class="pn-frequired">*</span>等级:</td><td colspan="1" width="38%" class="pn-fcontent"><input type="text" maxlength="5" max="9" value="${cmsAdmin.rank!}" name="rank" class="required digits" style="width:70px" maxlength="5"/> <span class="pn-fhelp">越大等级越高</span></td></tr>
<tr><td width="12%" class="pn-flabel pn-flabel-h"><span class="pn-frequired">*</span>禁用:</td>
<td colspan="1" width="38%" class="pn-fcontent">
<label><input type="radio" <#if cmsAdmin.disabled==true>checked="checked"</#if> value="true" name="disabled"/>是</label> 
<label><input type="radio" <#if cmsAdmin.disabled==false>checked="checked"</#if> value="false" name="disabled"/>否</label>
</td>
<td width="12%" class="pn-flabel pn-flabel-h">登录次数:</td><td colspan="1" width="38%" class="pn-fcontent">${cmsAdmin.loginCount!}</td></tr>
<tr>
<td width="12%" class="pn-flabel pn-flabel-h">注册:</td><td colspan="1" width="38%" class="pn-fcontent">
${cmsAdmin.registerTime?string('yyyy-MM-dd HH:mm:ss')} &nbsp; ${cmsAdmin.registerIp!}</td>
<td width="12%" class="pn-flabel pn-flabel-h">最后登录:</td><td colspan="1" width="38%" class="pn-fcontent">
${cmsAdmin.lastLoginTime?string('yyyy-MM-dd HH:mm:ss')} &nbsp; ${cmsAdmin.lastLoginIp!}</td></tr>
<tr>
<td width="12%" class="pn-flabel pn-flabel-h">真实姓名:</td><td colspan="1" width="38%" class="pn-fcontent">
<input type="text" maxlength="100" value="${cmsAdmin.realname!}" name="realname" maxlength="100"/></td>
<td width="12%" class="pn-flabel pn-flabel-h">性别:</td>
<td colspan="1" width="38%" class="pn-fcontent">
<label><input type="radio" <#if cmsAdmin.gender==true>checked="checked"</#if> value="true" name="gender"/>男</label> 
<label><input type="radio" <#if cmsAdmin.gender==false>checked="checked"</#if> value="false" name="gender"/>女</label> 
<label><input type="radio"  value="" name="gender"/>保密</label></td>
</tr>
<tr><td width="12%" class="pn-flabel pn-flabel-h"><span class="pn-frequired">*</span>受限管理员:</td>
<td colspan="1" width="38%" class="pn-fcontent">
<label><input type="radio" <#if cmsAdmin.selfAdmin==true>checked="checked"</#if> value="true" name="selfAdmin"/>是</label> 
<label><input type="radio" <#if cmsAdmin.selfAdmin==false>checked="checked"</#if> value="false" name="selfAdmin"/>否</label> 
<span class="pn-fhelp">只能管理自己的数据</span>
</td>
<td width="12%" class="pn-flabel pn-flabel-h"><span class="pn-frequired">*</span>只读管理员:</td>
<td colspan="1" width="38%" class="pn-fcontent">
<label><input type="radio" <#if cmsAdmin.viewonlyAdmin==true>checked="checked"</#if> value="true" name="viewonlyAdmin"/>是</label> 
<label><input type="radio" <#if cmsAdmin.viewonlyAdmin==false>checked="checked"</#if> value="false" name="viewonlyAdmin"/>否</label> 
<span class="pn-fhelp">用于后台演示</span>
</td>
</tr>
<tr><td width="12%" class="pn-flabel pn-flabel-h">角色:</td>
<td colspan="3" width="88%" class="pn-fcontent">
<#list roleList as role>
<#if roleIds?seq_contains(role.id)>
<label><input type="checkbox" checked="checked" value="${role.id}" name="roleIds"/>${role.name}</label> 
<#else>
<label><input type="checkbox" value="${role.id}" name="roleIds"/>${role.name}</label> 
</#if>
</#list>
</td>
</tr>

<tr><td colspan="4" class="pn-fbutton">
<input type="hidden" id="allChannel" name="allChannels" value="true"/>
<input type="hidden" name="id" value="${cmsAdmin.id!}"/>
	<input type="submit" value="提交" class="submit" class="submit"/> &nbsp; <input type="reset" value="重置" class="reset" class="reset"/>
</td></tr></table>
</form>
</div>
</body>
</html>